<template>
  <div>
   <good-list :arr="goods"></good-list>
  </div>
 
</template>

<script>
import {reqCateList} from "../../http/http";
export default {
  data() {
    return {
      goods: [],
    };
  },
  activated() {
    reqCateList(this.$route.query.id).then((res) => {
      // console.log(res);
      this.goods = res.data.list.goodData ? res.data.list.goodData : [];
    });
  },
};
</script>

<style scoped>
.list{
  padding: 0.2rem;
}
.item{
  display: flex;
  background: #f4f4f4;
  margin: 0.2rem 0rem;
}
.item img{
  width: 1rem;
  height: 1rem;
}
.item .right{
  flex: 1;
  margin-left: 0.3rem;
}
.right h3{
  font-size: 0.4rem;
  font-weight: 900;
}
.no{
  width: 50vw;
  height: 50vh;
  background-color: chartreuse;
  color:white;
  position: fixed;
  top: 1rem;
  left:1rem;
}
</style>